package cn.hyman.consumer;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

import javax.jms.Message;

@Component
public class MyQueueConsumer {

    @JmsListener(destination = "${myQueueName}")
    public void consumer(Message message) {
        System.out.println("消费监听器收到消息：" + message.toString());
    }
}
